from django.urls import path,re_path
from . import views

app_name = 'user'
urlpatterns = [
    path('demo/', views.demo, name='demo'),
  # path('demoView/', views.DemoView.as_view(), name='DemoView'),
  #   re_path('demoView/([a-z]+)/(\d{4})/', views.DemoView.as_view(), name='DemoView'),
  #   path('demoView/<str:city>/<int:year>/', views.DemoView.as_view(), name='DemoView'),
    re_path('demoView/(?P<city>[a-z]+)/(?P<year>\d{4})/', views.DemoView.as_view(), name='DemoView'),
]
